package com.voe.common;

public enum EcModes {

	/** previously set mode
	 */
	kEcUnchanged(0),
	/** platform default
	 */
	kEcDefault(1),
	/** conferencing default (aggressive AEC)
	 */
	kEcConference(2),
	/** Acoustic Echo Cancellation
	 */
	kEcAec(3),
	/** AEC mobile
	 */
	kEcAecm(4);

	public static EcModes fromValue(int value) {
		for (int i=0;i<EcModes.values().length;i++) {
			if(EcModes.values()[i].getValue() == value)
				return EcModes.values()[i];
		}
		return null;
	}

	/**
	 * Constructor.
	 */
	private EcModes(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
